package com.common.shared.usermanager;

import java.util.ArrayList;

import com.common.shared.SharedClass;
import com.google.gwt.user.client.rpc.IsSerializable;

public class User extends SharedClass implements IsSerializable {

	private int id;
	private String username;
	private int caption_id;
	private ArrayList<Permission> permitions;
	private ArrayList<Group> groups;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getCaption_id() {
		return caption_id;
	}

	public void setCaption_id(int caption_id) {
		this.caption_id = caption_id;
	}

	public ArrayList<Permission> getPermitions() {
		return permitions;
	}

	public void setPermitions(ArrayList<Permission> permitions) {
		this.permitions = permitions;
	}

	public ArrayList<Group> getGroups() {
		return groups;
	}

	public void setGroups(ArrayList<Group> groups) {
		this.groups = groups;
	}

	@Override
	public long getIdVal() {
		return getId();
	}

	@Override
	public String getTextVal() {
		return getTextVal();
	}

}
